package com.ruoyi.product.domain.vo;

import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

public class ProCatVo implements Serializable {
//    要是用自己建的vo去向前端反映数据 必须反应对应的id, 这是在后续根据id查询或删除所必须的
//    否则id为空会报不支持请求的bug
    private Long pId;

    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    private String pName;
    private String image;
    private String cName;
    private Long newPrice;
    private Long saleVolum;
    private Long stock;
    private Long type;
    private Long recommend;
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    private String description;

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Long getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(Long newPrice) {
        this.newPrice = newPrice;
    }

    public Long getSaleVolum() {
        return saleVolum;
    }

    public void setSaleVolum(Long saleVolum) {
        this.saleVolum = saleVolum;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getRecommend() {
        return recommend;
    }

    public void setRecommend(Long recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "ProCatVo{" +
                "pId=" + pId +
                ", userId=" + userId +
                ", pName='" + pName + '\'' +
                ", image='" + image + '\'' +
                ", cName='" + cName + '\'' +
                ", newPrice=" + newPrice +
                ", saleVolum=" + saleVolum +
                ", stock=" + stock +
                ", type=" + type +
                ", recommend=" + recommend +
                ", updatedTime=" + updatedTime +
                ", description='" + description + '\'' +
                '}';
    }
}
